package net.zhangyun.reactor;

import net.zhangyun.utils.MyConsole;
import reactor.core.publisher.Mono;

public class MonoMain {

    public static void main(String[] args) {
        MonoSample();
    }

    private static void MonoSample() {
        Mono<String> sample = Mono.just("Heaven");
        sample.doOnSuccess(MyConsole::printSingle).subscribe();
    }
}
